package com.parking.platform.form;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
/**
 * 登录参数对象
 * platformAccount：账号
 * platformPass：密码
 * */
@Data
@ApiModel("登录参数")
public class PlatLoginForm {

    @ApiModelProperty("账号")
    @Size(max = 20, message = "用户账号长度不能超过20位")
    @Pattern(regexp = "^[a-zA-Z0-9]*$", message = "用户账号只能包含字母或数字")
    private String platformAccount;
    @ApiModelProperty("密码")
    @Length(min = 6,max = 12,message = "密码长度错误6到12位")
    private String platformPass;
}
